<?php
/**
 * @description:
 * @author     : Geomen
 * @time       : 2018/11/6 16:25
 */


namespace App\Http\Controllers;


use App\Component\WeiXin;
use App\Console\WebSocketServer;

class HomeController extends Controller
{
    public function index()
    {
        $Wx = new WeiXin();
        $res = $Wx->sendSubscribeMessage('ocwn-0P78iuJpumIDFQMFE-orQf4','KLZWEYuC9XtKFZV4cacFo1KDv9kFO-BXmJ4Dy6Q3ITg',['thing3'=>['value' =>'不可用'],'time2' => ['value' =>date('Y-m-d H:i:s')]],'pages/index/index');
//        $res = $Wx->sendCustomerServiceMessage('ocwn-0P78iuJpumIDFQMFE-orQf4');
        return response(['res' => $res]);
    }
}
